﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

public partial class bgData_HourManger : System.Web.UI.Page
{
    BLL.BLLData bd = new BLLData();
    public string bmp = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        string repName = "";

        if (Request.QueryString["repName"].ToString() == "gl")
        {
            repName = "锅炉主要参数日报表";
            bmp = "锅炉主要参数日报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "dq")
        {
            repName = "电气主要参数日报表";
            bmp = "电气主要参数日报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "qj")
        {
            repName = "汽机主要参数日报表";
            bmp = "汽机主要参数日报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "fj")
        {
            repName = "辅机耗电统计日报表";
            bmp = "辅机耗电统计日报表.jpg";
        }
        else if (Request.QueryString["repName"].ToString() == "tl")
        {
            repName = "脱硫主要参数日报表";
            bmp = "脱硫主要参数日报表.jpg";
        }

        if (!IsPostBack)
        {
            DateTime dt = System.DateTime.Now;

            this.Date1.Value = dt.AddDays(-1).ToString("yyyy-MM-dd");

            string strApp = bd.RetTableByDay(repName);

            this.show.InnerHtml = strApp;
        }
    }
}